<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <title>管理页</title>
  <link rel="stylesheet" type="text/css" th:href="@{/static/layui-v2.6.13/layui/css/layui.css}"/>
  <style>
      body{
          margin: 0;
          padding: 0;
      }
      .layui-container{
          width: 100%;
          margin: 0 auto;
      }
  </style>
  <script type="text/javascript" th:src="@{/static/layui-v2.6.13/layui/layui.js}"></script>
  <script type="text/javascript" th:src="@{/static/js/jquery-1.9.1.min.js}"></script>
</head>
<body>

<div class="layui-container">
  <div class="layui-row layui-bg-green" align="left" style="height: 40px; ">
    <div class="layui-col-md6" style="margin-top:10px;">
      &nbsp;&nbsp;&nbsp;&nbsp;
      管理系统
    </div>
    <div class="layui-col-md6" align="right" style="margin-top:10px;">
      用户名:<span th:text="${user.name}"></span><span th:if="${root eq 'root'}"><span>  超级管理员</span></span>
    </div>
  </div>
  <div class="layui-row">
    <!-- 左侧导航栏 -->
    <div class="layui-col-md1 layui-bg-cyan" style="height: 700px;">

      <ul class="layui-nav layui-nav-tree layui-bg-cyan" lay-shrink="all" style="width: 100%;">
        <li class="layui-nav-item layui-nav-itemed">
          <a href="javascript:;">管理员</a>
          <dl class="layui-nav-child">
            <dd class="layui-this"><a th:href="@{pageadmin?root=}+${root}" target="main">管理员管理</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item ">
          <a href="javascript:;">商品管理</a>
          <dl class="layui-nav-child">
            <dd ><a href="/shop/good/pagegoods" target="main">上架商品</a></dd>
            <dd><a href="/shop/good/pagenosale" target="main">下架商品</a></dd>
            <dd><a href="/shop/good/type" target="main">商品类型</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item ">
          <a href="javascript:;">订单管理</a>
          <dl class="layui-nav-child">
            <dd ><a href="/shop/order/ok" target="main">订单列表</a></dd>
            <dd><a href="/shop/order/no" target="main">退款订单</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a th:href="@{login}">退出登录</a>
        </li>
      </ul>
    </div>
    <!-- 右侧页面内容 -->
    <div class="layui-col-md11" style="background-color: azure;">
      <iframe th:src="@{pageadmin?root=}+${root}" style="width: 100%; height: 700px; border: none;" name="main"></iframe>
    </div>
  </div>
</div>
</body>

</html>